You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Dew.Signal.Units Namespace > Classes > SignalUtils Class > SignalUtils Methods > SignalUtils.NearestZeroCrossing Method
Dew Signal for .NET
ContentsIndexHome
PreviousUpNext
SignalUtils.NearestZeroCrossing Method

Find the nearest zero crossing.

Syntax
C#
Visual Basic
public static void NearestZeroCrossing([In] TVec Data, ref double Pos, out double Y, bool LinInterpolate);

Converge to the nearest zero crossing of Data, if the start position is at Data[Pos]. Return the position of the found zero crossing in Pos and amplitude in Y. Use linear interpolation, if LinInterpolate is True, to determine the position of the actual intersection of the Data time series with zero. Use Y to determine how close the interpolation came . Y will be zero in case of linear interpolation.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!